<!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>{$CONF['mallTitle']}后台管理中心</title>
      <link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="__CSS__/AdminLTE.css" rel="stylesheet" type="text/css" />
      <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.min.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
      <![endif]-->
      <script src="__PUBLIC__/js/jquery.min.js"></script>
      <script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
      <script src="__PUBLIC__/js/common.js"></script>
      <script src="__PUBLIC__/plugins/plugins/plugins.js"></script>
      <script src="__PUBLIC__/plugins/kindeditor/kindeditor.js"></script>
      <script src="__PUBLIC__/plugins/kindeditor/lang/zh_CN.js"></script>
   <style type="text/css">
tr{height:40px;line-height:40px}
.dingdan_content{width:650px;border:1px solid #d5dfe8;float:left;background:#eef3f7;float:left; padding:20px;}
.dingdan_content li{ list-style-type:none;float:left;width:310px;

 }
.dingdan_content_user{width:650px;border:1px solid #d5dfe8;background:#eef3f7;float:left; padding:20px;}
.dingdan_content_user li{ line-height:25px;list-style-type:none;}

.api_b{width:80px; display:inline-block;font-weight:normal}
.yun_ma{ word-break:break-all; width:200px; background:#fff; overflow:auto; height:100px; border:5px solid #09F; padding:5px;}
</style>
   </head>
   <body class="wst-page">
   	<div class="table-list lr10">
       <div class="dingdan_content">
			<h3 style="clear:both;display:block; line-height:30px;"><?php echo $shop['title']; ?></h3>			
			<li><b class="api_b">剩余次数：</b><?php echo $shop['shenyurenshu']; ?> 人次	</li>		
			<li><b class="api_b">总需次数：</b><?php echo $shop['zongrenshu']; ?>人次 	</li>		
			<?php if(!isset($flag)){ ?>
			<li><b class="api_b">商品期数：</b>第 <?php echo $shop['qishu']; ?> 期	</li>
			<?php } ?>
			<li><b class="api_b">商品价格：</b><?php echo $shop['money'];?>	</li>
			<li><b class="api_b"><font color="#ff0000">中奖人</font></b><?php echo $qishu['ren']; ?></li>
			<li><b class="api_b"><font color="#ff0000">中奖抢购码</font></b><?php echo $qishu['ma']; ?></li>	
			<div class="bk10"></div>
			<li><b class="api_b">购买次数：</b><?php echo $record['gonumber']; ?>人次</li>
			<li class="yun_ma"><b class="api_b">获得抢购码：</b><br/>			
			<?php  
				$record['goucode'] = str_ireplace($qishu['ma'],"<font color='red'>$qishu[ma]</font>",$record['goucode']);
				echo str_ireplace(',',"&nbsp;&nbsp;&nbsp;",$record['goucode']);
			?>
            </li>
			</li>
		</div>
<div class="bk10"></div>
<div class="dingdan_content_user">
			<li><b class="api_b">购买人ID：</b> <?php echo $user['userId'];?></li>
			<li><b class="api_b">购买人昵称：</b> <?php echo $user['userName'];?></li>
			<li><b class="api_b">购买人邮箱：</b><?php echo $user['userEmail'];?></li>		
			<li><b class="api_b">购买人手机：</b><?php echo $user['userPhone'];?></li>					
			<li><b class="api_b">购买时间：</b><?php echo date("Y-m-d H:i:s",$go_time);?></li>	
            <li><b class="api_b">收货信息：</b><?php 
			if($user_dizhi){
				echo $user_dizhi['areaId1'].' - '.$user_dizhi['areaId2'].' - '.$user_dizhi['areaId3'].' - '.$user_dizhi['jiedao'];
				echo "&nbsp;&nbsp;&nbsp;邮编:".$user_dizhi['postCode'];				
				echo "&nbsp;&nbsp;&nbsp;收货人:".$user_dizhi['userName'];
				echo "&nbsp;&nbsp;&nbsp;手机:".$user_dizhi['userPhone'];
			}else{
				echo "该用户未填写收货信息,请自行联系买家！";
			}
			?></li>			
		</div>			
		<div class="bk10"></div>
		<?php 
			if($record['huode']){			
		?>
        
		<div class="dingdan_content_user">
			<?php $status=explode(",",$record['status']); ?>
			<form action="" method="post">
			<input type="hidden" name="code" value="<?php echo $record['id']; ?>"/>
			<li><b class="api_b">购买方式:</b> <font color="#0c0"><?php echo $record['pay_type']; ?>付款</font></li>
			<li><b class="api_b">当前状态:</b> <font color="#0c0"><?php echo $record['status']; ?></font></li>		
			<li><b class="api_b">订单状态:</b><select name="status">
											<option value="<?php echo $status[2]; ?>"><?php echo $status[2]; ?></option>
											<option value="未发货">未发货</option>
											<option value="已发货">已发货</option>
											<option value="已完成">已完成</option>
											<option value="已作废">已作废</option>										
										  </select>
			</li>
			<li><b class="api_b">物流公司:</b><input type="text" name="company" value="<?php echo $record['company']; ?>" class="input-text wid150"> 请自行填写物流公司名称</li>
			<li><b class="api_b">快递单号:</b><input type="text" name="company_code" value="<?php echo $record['company_code']; ?>" class="input-text wid150"> 填写物流公司快递单号</li>
			<li><b class="api_b">快递运费:</b><input type="text" name="company_money" value="<?php echo $record['company_money']; ?>"  class="input-text wid150"> 元 </li>
			
			<li><input type="submit" class="button" value="  更新  " name="submit" /></li>		
			</form>
		</div>
        <?php } ?>
	</div>
   </body>
</html>